package com.xueyi.game.backend.mapper;

import com.xueyi.game.backend.entity.po.BaseLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

/**
 * 描述 基础的日志Mapper
 *
 * @auther 俞烨
 * @date 2022-11-24 10
 */
public interface BaseLogMapper {


    /**
     * 新增日志
     * @param baseLog
     * @param logTableName
     */
    @Insert("INSERT INTO ${logTableName} (log_content , user_id) VALUES (#{log.logContent} , #{log.userId})")
    void saveLog(@Param("log") BaseLog baseLog,
                 @Param("logTableName") String logTableName);
}
